;(function () { 
	var vuePopup = {} 
	vuePopup.install = function (Vue,options) { 
		Vue.directive('popup', { 
			update:function(value){
				var self = this;
				this.Fun = function(){}
				if(value && typeof value == 'function'){
					this.Fun = value;					
				}
				this.pop = document.getElementById('popup');
					
				this.el.addEventListener('touchstart',function(){
					self.showPopBox();			
				},false);	
			},
			showPopBox:function(){
				
			}
						
		});
	} 
	if (typeof exports == "object") {
		module.exports = vuePopup;
	} else if (typeof define == "function" && define.amd) {
		define([], function(){ 
			return vuePopup ;
		})
	} else if (window.Vue) { 
		window.vuePopup = vuePopup;
		Vue.use(vuePopup);
	}
})();
